<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var dog = {
        name: '可可',
        type: '阿拉斯加',
        age: 5,
        color: '棕红色',
        bark: function () {
          console.log('汪汪汪!')
        },
        showFilm: function () {
          console.log('后会无期')
        },
      }
      console.log(dog.name)
    </script>
  </body>
</html>
